def dynload(filename):
    moduleName = filename.split('.')[-1]
    className = moduleName[:1].upper() + moduleName[1:]
    
    try:
        module = __import__(filename,fromlist=moduleName)
    except ImportError:
        return None
    
    if hasattr(module,className):
        return getattr(module,className)
    return None
    
    #try:
        #execStr = 'from %s import %s as dynClass' % (filename, className)
        #exec execStr in locals()
        #return dynClass
    #except:
        #return None
